<template>
  <div class="title">
    <h1>
      <img :src="scrImg" alt="" />
      <span>{{ title }}</span>
    </h1>
    <div class="more" v-if="title != '积分攻略'">
      <router-link to="/">
        更多
        <span>
          <img src="@/assets/img/arrow.png" alt="" />
        </span>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
    scrImg: {
      type: String,
      default: "",
    },
  },
};
</script>

<style lang="less" scoped>
.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 106px;
  h1 {
    img {
      width: 40px;
      height: 36px;
      vertical-align: text-bottom;
      margin-right: 10px;
    }
    span {
      font-size: 30px;
      font-family: SourceHanSansSC;
      font-weight: bold;
      color: #333333;
    }
  }
  .more {
    font-size: 16px;
    font-family: SourceHanSansSC;
    font-weight: 300;
    line-height: 23px;
    a {
      color: #666;
      text-decoration: none;
      span {
        width: 14px;
        height: 14px;
        vertical-align: middle;
      }
    }
  }
}
</style>